close all;

frame = ceil(size(O,2)*rand()/3);

cimg = data(:, :, (frame-1)*3+1:(frame-1)*3+3);
% cimg = reshape(cimg, 120, 160, 3);

figure;
imshow(uint8(cimg));

figure;
img = Y{1}(:, (frame-1)*3+1:(frame-1)*3+3);
img = reshape(img, 120, 160, 3);
imshow(abs(img));

figure;
img = Y{2}(:, (frame-1)*3+1:(frame-1)*3+3);
img = reshape(img, 120, 160, 3);
imshow(abs(img));

figure;
img = Y{3}(:, (frame-1)*3+1:(frame-1)*3+3);
img = reshape(img, 120, 160, 3);
imshow(abs(img));

figure;
img = Y{4}(:, (frame-1)*3+1:(frame-1)*3+3);
img = reshape(img, 120, 160, 3);
imshow(abs(img));